package com.pb.springbootdemo.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class User {

    @Value("${user.username}")
    private String username;

    @Value("${user.password}")
    private String password;

    @Override
    public String toString() {
        return "username:"+username+"\t"+"password:"+password;
    }
}
